<template>
    <view v-if="info" class="container">
        <view class="content">
            <view class="fs34 title">{{ info.title }}</view>
            <view class="df ac js fs24 col89 author-time">
                <view>{{ info.createtime_text }}</view>
            </view>
            <view class="detail">
				<u-parse :content="info.content" ></u-parse>
            </view>
        </view>
    </view>
</template>

<script>
const app = getApp();

const functions = require('../../../utils/functions.js');

export default {
    data() {
        return {
            id: 0,
            info: null,
        };
    },
    onLoad: function (options) {
        this.id=options.id || 0
        this.initData();
    },
    onShareAppMessage: function () {},
    methods: {
        initData() {
            var that = this; // 获取---搜索数据

            functions.getAjaxData(
                '/api/xiluhouse/Chat/message_detail',
                {
                    id: this.id
                },
                function (res) {
                    that.info=res.data
                }
            );
        }
    }
};
</script>
<style>
.content {
    padding: 28rpx 40rpx 40rpx;
}
.title {
    letter-spacing: -0.82rpx;
    padding-bottom: 33rpx;
}
.author-time {
    padding-bottom: 40rpx;
    border-bottom: 1px solid #f4f3f3;
}
.detail {
    padding-top: 24rpx;
    color: #333;
}
.detail image {
    width: 100%;
    margin: 30rpx 0;
}
</style>
